<?php

/**
 * @author tranbien
 * @copyright 2013
 * Verify response url
 */
include_once 'config.php';
include_once 'catalog/controller/payment/BaoKimPayment.php';
$db =mysql_connect(DB_HOSTNAME,DB_USERNAME,DB_PASSWORD) or die("Die connect: ".mysql_error());

mysql_select_db(DB_DATABASE) or die("Die select database: ".mysql_error());	

mysql_query("SET NAMES 'utf8'", $db);
$order_id=$_GET['order_id'];
/**/
if(isset($_GET)){
    $baokim = new BaoKimPayment();
    $very_cs = $baokim ->verifyResponseUrl($_GET);

    if($very_cs==true){
        
        $update_query  	= "UPDATE ".DB_PREFIX."orders SET orders_status_id = '2' WHERE orders_id = '".$order_id."' ";
        mysql_query($update_query);
        
    }
}


?>